package org.luxor.commons.excel.entity;


import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import lombok.Data;
import org.luxor.commons.core.utils.DateUtils;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Mr.Yan
 **/
@Data
@HeadStyle
public class PhoneData {

    @ExcelProperty(value = "序号")
    private Long id;

    @HeadFontStyle(color = 10)
    @ExcelProperty(value = "手机名称")
    private String name;

    @ExcelProperty(value = "颜色")
    private String colour;

    @ExcelProperty(value = "售价")
    private BigDecimal priceFloat;

    @DateTimeFormat(DateUtils.DATE_TIME_PATTERN)
    @ExcelProperty(value = "时间")
    private Date timeDate;

    @ExcelProperty(value = "已售")
    private Boolean sold;

    @ExcelProperty(value = "状态")
    private Long status;


//    @ExcelProperty(value = "时间2", index = 4)
//    private LocalDate timeLocalDate;
//    @ExcelProperty(value = "时间3", index = 4)
//    private LocalDateTime timeLocalDateTime;
//    @ExcelProperty(value = "时间4", index = 4)
//    private LocalTime timeLocalTime;

}
